#include"CRectangle.h"
CRectangle::CRectangle() : width(10), height(3){

}
CRectangle::CRectangle(double width, double height){
	this->width = width;
	this->height = height;
}
CRectangle::CRectangle(const CRectangle & rect){
	this->width = rect.getWidth();
	this->height = rect.getHeight();
}
CRectangle::~CRectangle(){

}
double CRectangle::getArea()const{
	return width*height;
}
double CRectangle::getWidth() const{
	return width;
}
void CRectangle::setWidth( double width) {
	this->width = width;
}
double CRectangle::getHeight() const{
	return height;
}
void CRectangle::setHeight(double height) {
	this->height = height;
}
const CRectangle & CRectangle:: operator ++(){
	++width;
	++height;
	return *this;
}
